package com.lay.service.impl;

import com.lay.entity.InsurContract;
import com.lay.dao.InsurContractMapper;
import com.lay.service.InsurContractService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 保险订单 服务实现类
 * </p>
 *
 * @author Lay
 * @since 2022-06-09
 */
@Service
public class InsurContractServiceImpl extends ServiceImpl<InsurContractMapper, InsurContract> implements InsurContractService {

    @Autowired
    private InsurContractMapper contractMapper;
    @Override
    public List<InsurContract> queryInsurContractById(String cid) {
        return  contractMapper.queryInsurContractById(cid);
    }

    @Override
    public List<InsurContract> queryByUid(Integer uid) {
        return contractMapper.queryByUid(uid);
    }

    @Override
    public InsurContract queryByIcId(Integer icId) {
        return contractMapper.queryByIcId(icId);
    }
}
